<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min.js"></script>
</head>

<body>
    <ul>
        <li>1</li>
        <li>1</li>
        <li>1</li>
        <li>1</li>
        <li>1</li>
        <li>1</li>
    </ul>
    <ol>

    </ol>
    <script>
        $("ul").on("click", "li", function() {
            alert("你点到我了,拱得远远的");
        })
        $("ol").on("click", "li", function() {
            alert("点我干嘛，点他们去,萌新勿欺");
        })
        var li = $("<li>萌新</li>");
        $("ol").append(li);
    </script>
</body>

</html>